import Vue from 'vue'
import Router from 'vue-router'
import routerConfig from './routerConfig'

Vue.use(Router)

export default new Router({
  mode: "history",
  base: '/',
  routes: [
    {
      path:"/",
      name:"home",
      component:()=>import("@/components/home"),
      meta:{
        title:"首页"
      },
      children:[
        ...routerConfig,
      ]
    },
    {
      path:"/login",
      name:"login",
      component:()=>import("@/components/views/Login"),
      meta:{
        title:"登录"
        }
    }
  ]
})
